package com.bzg.spring;

import com.bzg.spring.application.MyAnnotationApplicationContext;
import com.bzg.spring.component.MyService;
import com.bzg.spring.component.UserInterface;
import com.bzg.spring.config.MyConfig;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test {

	public static void main(String[] args) {
		AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(MyConfig.class);
		new ClassPathXmlApplicationContext("")
//		MyService myService = (MyService)applicationContext.getBean("myService");
//		UserInterface userService = (UserInterface)applicationContext.getBean("userService");
//		myService.test1();
//		userService.aopTest();
	}

}
